-
Notifications
You must be signed in to change notification settings - Fork 231
util/agents/usb_hid_relay: Fix agent errors #1776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1776 +/- ##
=========================================
- Coverage 56.0% 45.2% -10.9%
=========================================
Files 170 172 +2
Lines 13307 13572 +265
=========================================
- Hits 7458 6136 -1322
- Misses 5849 7436 +1587
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e5b5425 to
423b8c2
Compare
* get_output() should return some result; * should attach kernel driver back in the destructor otherwise HIDRAW device will not appear if it has existed. Signed-off-by: Roman Kuznecov <zubastikiko@gmail.com>
423b8c2 to
980a992
Compare
|
Hello there! @jluebbe, can you review the change, please? |
|
I tested the change with the next libusb versions: ant it's ok. But it was found that with the messages are appeared in dmesg: It looks like the change may cause unexpected issue for someone else. I close the PR until I can cope with the issue. |
Description
TL;DR
Hello there! I have a USB HID relay and tests for it and I face with the issue when after labgrid using the relay will not display in /dev system. Only replugging helps to fix it.
I notice that the device attachment is not performed at the USBHIDRelay destructor, and it seems to me ambiguous because the device doesn't return to the initial state.
I ran multiple pytest processes to test concurrent situations which were fixed in 1526. Tests are passed.
Checklist